package com.jiuyin.dianjing.model;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/***
 * 帖子(后台叫topic)
 */
public class PostModel implements Serializable {
    /**
     * 自己的帖子
     */
    public static final String OWN_POSTS = "1";
    /***
     * 帖子主键
     */
    String topic_id;
    /***
     * 创建时间
     */
    String create_time;
    /***
     * 昵称
     */
    String nickname;
    /***
     * 帖子图片的地址
     */
    List<String> photo;
    /***
     * 游戏标签
     */
    String game_tag;
    /***
     * 期望标签
     */
    String genre_tag;
    /***
     * 标题
     */
    @SerializedName(value = "title", alternate = "t_title")
    String title;

    String content;
    /***
     * 点赞次数
     */
    String thumb_num;
    /***
     * 评论条数
     */
    String comment_num;
    /***
     * 观看次数
     */
    String click_num;
    /***
     * 头像地址
     */
    String header;
    /**
     * 是否点赞
     */
    int isThumb;
    /**
     * 是否关注作者
     */
    int isAttention;
    /**
     * 分享次数
     */
    int share_num;
    /**
     * 发帖人主键
     */
    String user_id;
    /**
     * 0 不是自己的帖子 1 是自己的帖子
     */
    String isOneSelf = OWN_POSTS;

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public List<String> getPhoto() {
        return photo;
    }

    public void setPhoto(List<String> photo) {
        this.photo = photo;
    }

    public String getGame_tag() {
        return game_tag;
    }

    public void setGame_tag(String game_tag) {
        this.game_tag = game_tag;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getThumb_num() {
        return thumb_num;
    }

    public void setThumb_num(String thumb_num) {
        this.thumb_num = thumb_num;
    }

    public String getComment_num() {
        return comment_num;
    }

    public void setComment_num(String comment_num) {
        this.comment_num = comment_num;
    }

    public String getClick_num() {
        return click_num;
    }

    public void setClick_num(String click_num) {
        this.click_num = click_num;
    }

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public String getGenre_tag() {
        return genre_tag;
    }

    public void setDesire_tag(String desire_tag) {
        this.genre_tag = desire_tag;
    }

    public String getTopic_id() {
        return topic_id;
    }

    public void setTopic_id(String topic_id) {
        this.topic_id = topic_id;
    }

    public int getIsThumb() {
        return isThumb;
    }

    public void setIsThumb(int isThumb) {
        this.isThumb = isThumb;
    }

    public int getIsAttention() {
        return isAttention;
    }

    public void setIsAttention(int isAttention) {
        this.isAttention = isAttention;
    }

    public int getShare_num() {
        return share_num;
    }

    public void setShare_num(int share_num) {
        this.share_num = share_num;
    }

    public String getIsOneSelf() {
        return isOneSelf;
    }

    public void setIsOneSelf(String isOneSelf) {
        this.isOneSelf = isOneSelf;
    }

    @Override
    public String toString() {
        return "PostModel{" +
                "topic_id='" + topic_id + '\'' +
                ", create_time='" + create_time + '\'' +
                ", nickname='" + nickname + '\'' +
                ", photo=" + photo +
                ", game_tag='" + game_tag + '\'' +
                ", genre_tag='" + genre_tag + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", thumb_num='" + thumb_num + '\'' +
                ", comment_num='" + comment_num + '\'' +
                ", click_num='" + click_num + '\'' +
                ", header='" + header + '\'' +
                ", isThumb=" + isThumb +
                ", isAttention=" + isAttention +
                ", share_num=" + share_num +
                ", user_id='" + user_id + '\'' +
                ", isOneSelf='" + isOneSelf + '\'' +
                '}';
    }
}
